package com.lg.aptcomp.network

import com.lg.aptcomp.model.LoginResponseModel
import com.lg.aptcomp.network.ApiConstants.USER_LOGIN
import io.reactivex.Observable
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface ApiInterface {

    @FormUrlEncoded
    @POST(USER_LOGIN)
    fun login(
              @Field("username") username: String?,
              @Field("password") password: String):
            Observable<LoginResponseModel>
}